package simulacao;


import swarm.defobj.Zone;
import swarm.space.Discrete2dImpl;

public class Memoria extends Discrete2dImpl {


    public int sizeX, sizeY;

    public Memoria (Zone aZone, int worldXSize, int worldYSize)
    {
        super (aZone, worldXSize, worldYSize);
    	sizeX = worldXSize;
        sizeY = worldYSize;
        for (int x=0;x<sizeX;x++)
            for (int y=0;y<sizeY;y++)
                putValue$atX$Y(0,x,y);

    }

    public Object addVal$X$Y (int valor, int x, int y) {
        putValue$atX$Y (valor, x, y);
        return this;
    }

}
